/*
 * @Description: 积分活动接口
 * @Date: 2022-12-09 14:00:11
 * @Author: lizhiqiang
 */
import { IntegralActivity } from "@/types/api";
import { get, post } from "@/utils/request";
/**
 * 获取积分活动列表
 */
export const GetIntegralActivityList = ( params: IntegralActivity ) => {
    return post( "/integral-service/integral/integralactivity/list", params )
}
/**
 * 获取积分活动详情
 * @param pkAccountDc 
 * @returns 
 */
export const GetIntegralActivity = ( id: string ) => {
    return get( `/integral-service/integral/integralactivity/info/${ id }` )
}
/**
 * 保存积分活动
 * @param params 
 * @returns 
 */
export const SaveIntegralActivity = ( params: IntegralActivity ) => {
    return post( "/integral-service/integral/integralactivity/save", params )
}
/**
 * 修改积分活动
 * @param params 
 * @returns 
 */
export const UpdateIntegralActivity = ( params: IntegralActivity ) => {
    return post( "/integral-service/integral/integralactivity/update", params )
}
/**
 * 删除积分活动
 * @param params 
 * @returns 
 */
export const DeleteIntegralActivity = ( params: Array<string> ) => {
    return post( "/integral-service/integral/integralactivity/deleteBatch",params)
}
/**
 * 积分活动，查询出金账户列表
 * @param params 
 * @returns 
 */
export const getIntegralActivityOutAcc = ( ) => {
    return post( "/integral-service/integral/account/queryIntegralActivityOutAcc", null)
}

// 积分活动 - 下架
export const integralactivityDown = (params: any) => {
    return post("/integral-service/integral/integralactivity/down", params)
}